package com.bi.onlineEducation.service;

import com.bi.onlineEducation.dao.RechargeLogDao;
import com.bi.onlineEducation.domain.RechargeLogPo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: chenYuTao
 * @Time: 2022/1/20 0:10
 * @Description:
 **/
@Service
public class RechargeLogService {
    @Resource
    private RechargeLogDao rechargeLogDao;

    public List<RechargeLogPo> findAll(){
        return rechargeLogDao.findAll();
    }

    public RechargeLogPo findById(Integer id){
        return rechargeLogDao.findById(id).get();
    }

    public RechargeLogPo save(RechargeLogPo rechargeLogPo){
        return rechargeLogDao.save(rechargeLogPo);
    }

    public Boolean deleteById(Integer id){
        rechargeLogDao.deleteById(id);
        return true;
    }
}
